package com.banmoon.mediator;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public abstract class AbstractLandlord {

    private String name;

    private Mediator mediator;

    private List<House> houseList;

    public AbstractLandlord(String name, Mediator mediator) {
        this.name = name;
        this.mediator = mediator;
        this.houseList = new ArrayList<>();
        this.mediator.register(this);
    }

    abstract void sendMessage();

}
